@use './element-ui.scss' as *;

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  color: #3d3d3d;
  -ms-overflow-style: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #dcdcdc;
}

::-webkit-scrollbar-track {
  background-color: #fafafa;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.text-bold {
  font-weight: bold;
}

.text-white {
  color: #ffffff;
}

.text-success {
  color: #67c23a;
}

.text-info {
  color: #909399;
}

.text-primary {
  color: #7300e6;
}

.text-warning {
  color: #e6a23c;
}

.text-general {
  color: #409eff;
}

.text-danger {
  color: #f56c6c;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.no-padding {
  padding: 0 !important;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inline-block {
  display: inline-block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

// overflow
.hide-x {
  overflow-x: hidden;
}

.hide-y {
  overflow-y: hidden;
}

.hide-xy {
  overflow: hidden;
}

.flex {
  display: flex;
  flex-direction: row;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex1 {
  flex: 1;
}

.flex-w {
  flex-wrap: wrap;
}

.flex-start,
.f-i-s {
  align-items: flex-start;
}

.flex-center,
.f-i-c {
  align-items: center;
}

.flex-end,
.f-i-e {
  align-items: flex-end;
}

.flex-col-center,
.f-c-c {
  justify-content: center;
}

.flex-col-around,
.f-c-sa {
  justify-content: space-around;
}

.flex-col-between,
.f-c-sb {
  justify-content: space-between;
}

.flex-col-end,
.f-c-e {
  justify-content: flex-end;
}

.flex-self-start,
.f-s-s {
  align-self: flex-start;
}

.flex-self-center,
.f-s-c {
  align-self: center;
}

.flex-self-end,
.f-s-e {
  align-self: flex-end;
}

// 文字超出显示...
.overflow-point {
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  -moz-text-overflow: ellipsis;
  -webkit-text-overflow: ellipsis;
  overflow: hidden;
}

.app-container {
  font-size: 13px;
  padding: 15px;
}

.pagination-container {
  margin-top: 10px;
}

.filter-container {
  min-height: 42px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;

  .filter-item {
    margin-left: 0;
    margin-right: 5px;
    margin-bottom: 5px;
  }

  .filter-item:last-child {
    margin-right: 0;
  }
}

.panel-info {
  border: #e4e4e4 solid 1px;

  .panel-title {
    padding: 0 10px;
    height: 28px;
    line-height: 28px;
    background-color: #f1f1f1;
  }

  .panel-body {
    padding: 10px;
  }
}

/*
** 常用类名样式
*/

@for $i from 0 through 100 {
  .t-#{$i} {
    font-size: #{$i}px !important;
  }

  .m-#{$i} {
    margin: #{$i}px !important;
  }

  .mt-#{$i} {
    margin-top: #{$i}px !important;
  }

  .ml-#{$i} {
    margin-left: #{$i}px !important;
  }

  .mr-#{$i} {
    margin-right: #{$i}px !important;
  }

  .mb-#{$i} {
    margin-bottom: #{$i}px !important;
  }

  .p-#{$i} {
    padding: #{$i}px !important;
  }

  .pl-#{$i} {
    padding-left: #{$i}px !important;
  }

  .pr-#{$i} {
    padding-right: #{$i}px !important;
  }

  .pt-#{$i} {
    padding-top: #{$i}px !important;
  }

  .pb-#{$i} {
    padding-bottom: #{$i}px !important;
  }

  .radius-#{$i} {
    border-radius: #{$i}px !important;
  }
}